import tkinter as tk
window = tk.Tk()
window.title('my window')
window.geometry('500x400')
tk.Label(window, text='on the window').pack()
frm = tk.Frame(window)
frm.pack()
frm_l = tk.Frame(frm)  # 省略了各种参数
frm_r = tk.Frame(frm)
frm_l.pack(side='left')  # 建立在主frm框架上
frm_r.pack(side='right')
tk.Label(frm_l, text='on the frm_l1').pack()
tk.Label(frm_l, text='on the frm_l2').pack()
tk.Label(frm_r, text='on the frm_r1').pack()
window.mainloop()

